package guiClasses;
/**
 * TCSS 360 - Project
 */

import java.awt.EventQueue;


import objectClasses.Database;

import objectClasses.Database;
import objectClasses.Entry;
import objectClasses.User;
import objectClasses.UserInfo;

import javax.swing.JFrame;

/**
 *  Driver Class for program.  Instantiates a BeWeave frame and holds data.
 *  
 *  @author Abraham Santini
 */

public class GuiMain {
	private static UserInfo my_user;
	private static BeWeaveFrame my_frame;
	private static Database my_database = Database.getInstance();

	/**
	 * The main method.  Invokes a BeWeaveFrame.
	 * Command line args are ignored
	 * @param args command line arguments
	 */
	public static void main(String[] args){
		//User.InitializeEncryption();
		Database.loadFile();
		EventQueue.invokeLater(new Runnable()
		{
			public void run() {			
				my_frame = new BeWeaveFrame();	
			}
		});



	}
/**
 * Gets the current user
 * @return my_user
 */
	public static UserInfo getUser() {
		return my_user;
	}
/**
 * Sets my_user to the current user.
 * @param the_user The current user.
 */
	public static void setUser(UserInfo the_user) {
		my_user = the_user;
	}

}
